package com.srd.phone.mvp.presenters;

import android.graphics.Color;
import android.text.Spannable;
import android.text.SpannableStringBuilder;
import android.text.style.ForegroundColorSpan;
import android.widget.TextView;

import com.android.volley.RequestQueue;
import com.srd.phone.mvp.interfaces.IBaseView;


public class WithdrawRechargePresenter extends BasePresenter {


    public WithdrawRechargePresenter(RequestQueue requestQueue, IBaseView iView0) {
        super(requestQueue,iView0);
    }

    /**
     * 字体格式化
     * */
    public void setTextSpan(TextView textView, String text){
        SpannableStringBuilder style=new SpannableStringBuilder(text);
        style.setSpan(new ForegroundColorSpan(Color.parseColor("#CB484B")), text.indexOf("￥") , text.length(), Spannable.SPAN_EXCLUSIVE_INCLUSIVE);
        textView.setText(style);
    }
}
